package com.medical.medical.service;

import com.medical.medical.entity.*;

import java.util.List;
import java.util.Map;

/**
         * @authorDesc 对酒当歌，人生几何！
         * @author WangLuDong
         * @date 2022-09-14 09:17:16
         * @version 1.0.0
         * @description 接口描述 医生类接口
        */
public interface DoctorService {
    /**
     * @Description: 医生验证登录
     * @author: 喜杨杨
     * @date: 2022/9/21 17:07
     * @param: [phone, password]
     * @return: com.medical.medical.entity.Doctor
     **/
    Doctor login(String phone, String password);

     /**
      *@author WangLuDong
      *@Description 方法描述 根据科室名称获取医生信息
      *@Date 2022-09-14 20:55:03
       * @param departmentId
      *@Return {@link null}
      */
    List<Doctor> getDoctorByDepartmentId(int departmentId);

    /**
      * @description 医生填写患者就诊报告
      * @author ChenLi
      * @date 2022-09-15 14:55:40
      * @param record
      * @return {@link boolean}
      */
    boolean addrecord(Record record);

    /**
      * @description 医生添加用药记录
      * @author ChenLi
      * @date 2022-09-19 08:24:10
      * @param recordId
     * @param
      * @return {@link boolean}
      */
    boolean adddrug(int recordId, List<DrugNumberAndId> drugNumberAndIdList );

    List<String> getDrugNum(String drugName);

    Drug getDrug(String drugName, String drugNum);

     /**
      *@author WangLuDong
      *@Description 方法描述 根据科室名和医生名进行挂号
      *@Date 2022-09-16 09:42:14
       * @param workforcesDepartment
       * @param workforcesDoctor
      *@Return {@link null}
      */
    Map<String, Object> doBookingBydepartmentNameAndDName(int workforcesDepartment, int workforcesDoctor);

    List<Doctor> getDocListByDepartmentId(Integer departmentId);

    List<Patient> queryPatient(int dId,int department);

    String getDepartment(int doctorId);
}
